package com.jisu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jisu.common.ResultVo;
import com.jisu.dto.CommentDTO;
import com.jisu.pojo.Comment;

import java.util.List;

public interface CommentService extends IService<Comment> {
    ResultVo<Comment> addComment(Comment comment);
    ResultVo deleteComment(List<Integer> ids);
    ResultVo updateComment(Comment comment);
    ResultVo<IPage<Comment>> getCommentInPage(CommentDTO commentDTO);

    List<Comment> getCommentsByModelId(Integer modelId);
}
